import request from "@/utils/request";

export function getInspectionMngList(data) {
  return request({
    url: "/inspectionMng/list",
    method: "get",
    data,
  });
}

export function addInspectionMng(data) {
  return request({
    url: "/inspectionMng/add",
    method: "post",
    data,
  });
}

export function deleteInspectionMng(id) {
  return request({
    url: `/inspectionMng/delOrder/${id}`,
    method: "delete",
  });
}

export function getProductNameList() {
  return request({
    url: "/inspectionMng/getProductName",
    method: "get",
  });
}

export function getSelectLZnum(data) {
  return request({
    url: "/inspectionMng/selectLZnum",
    method: "post",
    data,
  });
}

// inspectionMngDetail/getListByMngId

export function getListByMngId(data) {
  return request({
    url: "/inspectionMngDetail/getListByMngId",
    method: "post",
    data,
  });
}

// 编辑
export function updateInspectionMng(data) {
  return request({
    url: "/inspectionMng/update",
    method: "post",
    data,
  });
}
